package araxy.blog.mapper;

import araxy.blog.entity.User;

import java.util.List;

public interface UserMapper {
    Integer deleteByPrimaryKey(String id);

    Integer insert(User record);

    User selectByPrimaryKey(String id);

    User selectByUserConditions(User condition);

    User selectByUsername(String username);

    Integer countByUsername(String username);

    List<User> selectAll();

    Integer countAllAdmin();

    Integer updateByPrimaryKey(User record);
}